package it.avantsoft.ls.gl.command;

import it.avantsoft.ls.gl.GroupChildHandler;
import it.avantsoft.ls.gl.data.Appraisals;

public class AppraisalCommand extends GroupChildCommand {
    private Appraisals appraisals;

    public AppraisalCommand(GroupChildHandler groupChildHandler, byte[] appraisals) {
        super(groupChildHandler);
        this.appraisals = new Appraisals(appraisals);
    }

    public void execute() {
        getChild().newAppraisals(appraisals);
    }

    public String toString() {
        return "AppraisalCommand{" +
                "child=" + getChild() +
                ", appraisals=" + appraisals +
                '}';
    }
}
